# -*-codeing = utf-8 -*-
# @Tine:2024/9/18 
# @Author:计科201121尚益帆
# File：2.1.py
# @Software:PyCharm
name = input("请输入一个姓名：")
if name in list3:
    print(f"{name}在列表中")
else:
    print(f"{name}不在列表中")
if name in list3:
    index = list3.index(name)
    print(f"{name}在列表中的位置是：{index}")
a = list4.count(2)
print(f"2的个数是：{a}")
list4 = [1, 2, 4, 2, 3]
list5 = list4.copy()
list5.reverse()
print("list4:", list4)
print("list5:", list5)
list4.sort()
print("升序排序后的list4:", list4)
list4.sort(reverse=True)
print("降序排序后的list4:", list4)
